package com.person.yhzs.user.entity.dto;

import com.person.yhzs.user.entity.User;

/**
 * @author luolin
 */
public class UserDto extends User {

    // 家谱id
    private Long familyId;

    // 操作类型
    private Integer type;

    // 目标人员id（给某个人添加父辈、字辈、晚辈、平辈、配偶，某个人的人员id，而不是新增的人员id）
    private Long targetPersonId;

    // 关系id
    private Long relationId;

    // 父关系id
    private Long relationPId;

    // 是否校验存在手机号
    private Boolean existsPhone;

    // 是否是配偶
    private Boolean optionMate;

    public Long getFamilyId() {
        return familyId;
    }

    public void setFamilyId(Long familyId) {
        this.familyId = familyId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getTargetPersonId() {
        return targetPersonId;
    }

    public void setTargetPersonId(Long targetPersonId) {
        this.targetPersonId = targetPersonId;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Long getRelationPId() {
        return relationPId;
    }

    public void setRelationPId(Long relationPId) {
        this.relationPId = relationPId;
    }

    public Boolean getExistsPhone() {
        return existsPhone;
    }

    public void setExistsPhone(Boolean existsPhone) {
        this.existsPhone = existsPhone;
    }

    public Boolean getOptionMate() {
        return optionMate;
    }

    public void setOptionMate(Boolean optionMate) {
        this.optionMate = optionMate;
    }

    @Override
    public String toString() {
        return "UserDto{" +
                "familyId=" + familyId +
                ", type=" + type +
                ", targetPersonId=" + targetPersonId +
                ", relationId=" + relationId +
                ", relationPId=" + relationPId +
                ", existsPhone=" + existsPhone +
                ", optionMate=" + optionMate +
                '}';
    }
}
